﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Company.Merchandising.BusinessLayer.DataEntities;

namespace Company.Merchandising.DataAccessLayer.DataAccessCommon
{
	public class DACContactPerson : DACBase
	{
		public DACContactPerson(MerchModelEntities modelEntities) : base(modelEntities) { }

		public IQueryable<ContactPerson> GetAllContactPersons()
		{
			return from contact in _modelEntities.ContactPerson select contact;
		}

		public ContactPerson GetContactPersonById(int contactPersonId)
		{
			return (from contact in _modelEntities.ContactPerson where contact.Id == contactPersonId select contact).FirstOrDefault();
		}

	}
}
